<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class Home\Model\OrderModel | XY Server API alpha</title>

	<link rel="stylesheet" href="resources/style.css?e99947befd7bf673c6b43ff75e9e0f170c88a60e">

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
				<li>
					<a href="namespace-Behavior.html">
						Behavior					</a>

						</li>
				<li>
					<a href="namespace-DatebaseSQL.html">
						DatebaseSQL					</a>

						</li>
				<li>
					<a href="namespace-Doc.html">
						Doc					</a>

						</li>
				<li>
					<a href="namespace-ErrorCode.html">
						ErrorCode					</a>

						</li>
				<li class="active">
					<a href="namespace-Home.html">
						Home<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-Home.Controller.html">
						Controller					</a>

						</li>
				<li class="active">
					<a href="namespace-Home.Model.html">
						Model					</a>

						</li>
							</ul></li>
				<li>
					<a href="namespace-None.html">
						None					</a>

						</li>
				<li>
					<a href="namespace-Think.html">
						Think					</a>

						</li>
			</ul>
		</div>

		<hr>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-Home.Model.AccountModel.html">AccountModel</a></li>
				<li><a href="class-Home.Model.ApplyModel.html">ApplyModel</a></li>
				<li><a href="class-Home.Model.AsynTasksModel.html">AsynTasksModel</a></li>
				<li><a href="class-Home.Model.AuthGroupAccessModel.html">AuthGroupAccessModel</a></li>
				<li><a href="class-Home.Model.AuthGroupModel.html">AuthGroupModel</a></li>
				<li><a href="class-Home.Model.AuthRuleModel.html">AuthRuleModel</a></li>
				<li><a href="class-Home.Model.BaseadvModel.html">BaseadvModel</a></li>
				<li><a href="class-Home.Model.CarlicenseModel.html">CarlicenseModel</a></li>
				<li><a href="class-Home.Model.CatModel.html">CatModel</a></li>
				<li><a href="class-Home.Model.CompanyModel.html">CompanyModel</a></li>
				<li><a href="class-Home.Model.ConfigModel.html">ConfigModel</a></li>
				<li><a href="class-Home.Model.ContactModel.html">ContactModel</a></li>
				<li><a href="class-Home.Model.CusListModel.html">CusListModel</a></li>
				<li><a href="class-Home.Model.DepartmentModel.html">DepartmentModel</a></li>
				<li><a href="class-Home.Model.EverydaySummarySheetModel.html">EverydaySummarySheetModel</a></li>
				<li><a href="class-Home.Model.FaceRecModel.html">FaceRecModel</a></li>
				<li><a href="class-Home.Model.FeedbackModel.html">FeedbackModel</a></li>
				<li><a href="class-Home.Model.FinanceModel.html">FinanceModel</a></li>
				<li><a href="class-Home.Model.GoodModel.html">GoodModel</a></li>
				<li class="active"><a href="class-Home.Model.OrderModel.html">OrderModel</a></li>
				<li><a href="class-Home.Model.OtherModel.html">OtherModel</a></li>
				<li><a href="class-Home.Model.ParkaddressModel.html">ParkaddressModel</a></li>
				<li><a href="class-Home.Model.PaybillModel.html">PaybillModel</a></li>
				<li><a href="class-Home.Model.PaymentDetailsModel.html">PaymentDetailsModel</a></li>
				<li><a href="class-Home.Model.PhonenumModel.html">PhonenumModel</a></li>
				<li><a href="class-Home.Model.PinYin.html">PinYin</a></li>
				<li><a href="class-Home.Model.PrintTemplateModel.html">PrintTemplateModel</a></li>
				<li><a href="class-Home.Model.QnUploadModel.html">QnUploadModel</a></li>
				<li><a href="class-Home.Model.QueryModel.html">QueryModel</a></li>
				<li><a href="class-Home.Model.SkuBillModel.html">SkuBillModel</a></li>
				<li><a href="class-Home.Model.SkuCidPriceModel.html">SkuCidPriceModel</a></li>
				<li><a href="class-Home.Model.SkuModel.html">SkuModel</a></li>
				<li><a href="class-Home.Model.SkuStorageModel.html">SkuStorageModel</a></li>
				<li><a href="class-Home.Model.SmsDetailsModel.html">SmsDetailsModel</a></li>
				<li><a href="class-Home.Model.SpuModel.html">SpuModel</a></li>
				<li><a href="class-Home.Model.StatementAccountModel.html">StatementAccountModel</a></li>
				<li><a href="class-Home.Model.StorageModel.html">StorageModel</a></li>
				<li><a href="class-Home.Model.UpdateDatabaseFormatModel.html">UpdateDatabaseFormatModel</a></li>
				<li><a href="class-Home.Model.UserAccountModel.html">UserAccountModel</a></li>
				<li><a href="class-Home.Model.UserModel.html">UserModel</a></li>
				<li><a href="class-Home.Model.UtilModel.html">UtilModel</a></li>
				<li><a href="class-Home.Model.WarehouseModel.html">WarehouseModel</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="">
		<input type="hidden" name="ie" value="UTF-8">
		<input type="text" name="q" class="text" placeholder="Search">
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="namespace-Home.Model.html" title="Summary of Home\Model"><span>Namespace</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
				<li>
					<a href="annotation-group-api.html" title="List of elements with api annotation">
						<span>Api</span>
					</a>
				</li>
				<li>
					<a href="annotation-group-version.html" title="List of elements with version annotation">
						<span>Version</span>
					</a>
				</li>
				<li>
					<a href="annotation-group-since.html" title="List of elements with since annotation">
						<span>Since</span>
					</a>
				</li>
				<li>
					<a href="annotation-group-deprecated.html" title="List of elements with deprecated annotation">
						<span>Deprecated</span>
					</a>
				</li>
				<li>
					<a href="annotation-group-todo.html" title="List of elements with todo annotation">
						<span>Todo</span>
					</a>
				</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class OrderModel</h1>


	<div class="description">
	<p>订单类Model.</p>

<ul>
<li>参考文档：<code><a href="function-Doc.doc_view.html">Doc\doc_view()</a></code></li>
<li>错误代码：<code><a href="class-ErrorCode.ErrorCode.html">ErrorCode\ErrorCode</a></code></li>
</ul>
	</div>

	<dl class="tree">
		<dd style="padding-left:0px">
Think\Model\AdvModel
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by">
			<a href="class-Home.Model.BaseadvModel.html"><span>Home\Model\BaseadvModel</span></a>
			
			
			
		</dd>
		<dd style="padding-left:60px">
			<img src="resources/inherit.png" alt="Extended by">
<b><span>Home\Model\OrderModel</span></b>			
			
			
		</dd>
	</dl>








	<div class="info">
		
		
		<b>Namespace:</b> <a href="namespace-Home.html">Home</a>\<a href="namespace-Home.Model.html">Model</a><br>
		

			<b>Located at</b> <a href="source-class-Home.Model.OrderModel.html#6-1968" title="Go to source code">Home/Model/OrderModel.class.php</a>
		<br>
	</div>



	<table class="summary methods" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="createOrder" id="_createOrder">

		<td class="attributes"><code>
			 public 

			unsigned_int
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_createOrder">#</a>
		<code><a href="source-class-Home.Model.OrderModel.html#293-1043" title="Go to source code">createOrder</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>boolean <var>$isAlreadyStartTrans</var> = <span class="php-keyword1">false</span></span>, <span>boolean <var>$sys_mode</var> = <span class="php-keyword1">false</span></span>, <span>boolean <var>$reopen</var>,…</span>, <span>unsigned_int <var>$oid</var>,…</span>, <span>unsigned_int <var>$class</var>,…</span>, <span>unsigned_int <var>$sto_id</var>,…</span>, <span>integer <var>$isdeliver</var>,…</span>, <span>unsigned_int <var>$cid</var>,…</span>, <span>string <var>$contact_name</var>,…</span>, <span>string <var>$mobile</var>,…</span>, <span>string <var>$park_address</var>,…</span>, <span>string <var>$car_license</var>,…</span>, <span>string <var>$warehouse_remark</var>,…</span>, <span>float <var>$off</var>,…</span>, <span>float <var>$cash</var>,…</span>, <span>float <var>$bank</var>,…</span>, <span>float <var>$online_pay</var>,…</span>, <span>float <var>$freight</var>,…</span>, <span>integer <var>$is_calculated</var>,…</span>, <span>integer <var>$freight_cal_method</var>,…</span>, <span>float <var>$freight_received</var>,…</span>, <span>string <var>$remark</var>,…</span>, <span>unsigned_int <var>$reg_time</var>,…</span>, <span>json <var>$cart</var>,…</span> )</code>

		<div class="description short">
			<p>新建订单</p>
		</div>

		<div class="description detailed hidden">
			<p>新建订单</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd>post来的数据</dd>
					<dt><var>$isAlreadyStartTrans</var></dt>
					<dd>是否已经开启事务 @internal</dd>
					<dt><var>$sys_mode</var></dt>
					<dd>系统调用，即是否是Company->createCompany()的时候被调用，当其为true时，只用填入class cid remark，额外填入value. @internal</dd>
					<dt><var>$reopen</var>,…</dt>
					<dd>订单重新打开 重开-true  非重开-不传</dd>
					<dt><var>$oid</var>,…</dt>
					<dd>草稿用：如果有oid且没有$reopen则为草稿转为开单，应删除此oid对应的草稿。</dd>
					<dt><var>$class</var>,…</dt>
					<dd>单据类别</dd>
					<dt><var>$sto_id</var>,…</dt>
					<dd>仓库id</dd>
					<dt><var>$isdeliver</var>,…</dt>
					<dd>是否送货 送货-1 不送货-0</dd>
					<dt><var>$cid</var>,…</dt>
					<dd>公司cid</dd>
					<dt><var>$contact_name</var>,…</dt>
					<dd>联系人名称</dd>
					<dt><var>$mobile</var>,…</dt>
					<dd>手机</dd>
					<dt><var>$park_address</var>,…</dt>
					<dd>停车位置</dd>
					<dt><var>$car_license</var>,…</dt>
					<dd>车牌号</dd>
					<dt><var>$warehouse_remark</var>,…</dt>
					<dd>送货信息备注</dd>
					<dt><var>$off</var>,…</dt>
					<dd>优惠</dd>
					<dt><var>$cash</var>,…</dt>
					<dd>现金</dd>
					<dt><var>$bank</var>,…</dt>
					<dd>银行</dd>
					<dt><var>$online_pay</var>,…</dt>
					<dd>在线支付</dd>
					<dt><var>$freight</var>,…</dt>
					<dd>运费</dd>
					<dt><var>$is_calculated</var>,…</dt>
					<dd><p>运费是否计入
1-采购单运费计入成本或其他订单选垫付
0-采购单运费不计入成本或其他订单选我方承担 即另外生成一张费用单</p></dd>
					<dt><var>$freight_cal_method</var>,…</dt>
					<dd>采购单运费分摊方式 1- 按数量 2-按金额  不计入不传</dd>
					<dt><var>$freight_received</var>,…</dt>
					<dd>已收运费（不能超过运费总金额）</dd>
					<dt><var>$remark</var>,…</dt>
					<dd>备注</dd>
					<dt><var>$reg_time</var>,…</dt>
					<dd>创建时间，可选参数。默认开单时间是当时，如果传入此项，则按此项时间。</dd>
					<dt><var>$cart</var>,…</dt>
					<dd>购物车内容，购物车格式如下：</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					unsigned_int<br>成功返回oid > 0
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><a href="class-XYException.html">XYException</a></code>
				</div>

				<h4>Since</h4>
				<div class="list">
						v0.2.28 $name => 无<br>
				</div>
				<h4>Example</h4>
				<div class="list">
						<p>cart json:
    mini:{"data":[{"sku_id":1,"spu_name":"三黄鸡","spec_name":"10只","quantity":10,"unitPrice":123},{"sku_id":2,"spu_name":"三黄鸡","spec_name":"15只","quantity":20,"unitPrice":223}]}</p><br>
						<p>展开:
    {
        "data":
        [
            {
                "sku_id":1,
                "spu_name":"三黄鸡",
                "spec_name":"10只",
                "quantity":10,
                "unitPrice":123,
                "comment":"备注"
            },
            {
                "sku_id":2,
                "spu_name":"三黄鸡",
                "spec_name":"15只",
                "quantity":20,
                "unitPrice":223,
                "comment":"备注"
            }
        ]
    }</p><br>
				</div>
				<h4>Api</h4>
				<div class="list">
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="editOrder" id="_editOrder">

		<td class="attributes"><code>
			 public 

			1
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_editOrder">#</a>
		<code><a href="source-class-Home.Model.OrderModel.html#1047-1130" title="Go to source code">editOrder</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span> <var>$isAlreadyStartTrans</var> = <span class="php-keyword1">false</span></span> )</code>

		<div class="description short">
			<p>编辑订单信息。</p>
		</div>

		<div class="description detailed hidden">
			<p>编辑订单信息。</p>

<ul>
<li>@param mixed|null $data POST的数据</li>
<li>@param bool $isAlreadyStartTrans 在调用本函数的时候外部是否已开启事务。@internal</li>
<li>@param unsigned_int $oid，必填</li>
<li></li>
<li>可选参数（以下字段任选一个以上）：</li>
<li>@param string $contact_name 联系人名</li>
<li>@param string $mobile 手机</li>
<li>@param string $park_address 停车位置</li>
<li>@param string $car_license 车牌号</li>
<li>@param string $warehouse_remark 送货信息备注</li>
<li>@param string $remark 备注</li>
<li>当status为2的时候，需额外传入：</li>
<li>@param unsigned_int $exceptionNo 异常状态码</li>
<li>@param string $exception 异常原因</li>
</ul>



				<h4>Returns</h4>
				<div class="list">
					1<br>成功
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><a href="class-XYException.html">XYException</a></code>
				</div>

				<h4>Since</h4>
				<div class="list">
						v0.3 不能更改状态了<br>
				</div>
				<h4>Api</h4>
				<div class="list">
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="deleteOrder" id="_deleteOrder">

		<td class="attributes"><code>
			 public 

			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_deleteOrder">#</a>
		<code><a href="source-class-Home.Model.OrderModel.html#1135-1262" title="Go to source code">deleteOrder</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>boolean <var>$isAlreadyStartTrans</var> = <span class="php-keyword1">false</span></span> )</code>

		<div class="description short">
			<p>删除单据（红冲单据）</p>
		</div>

		<div class="description detailed hidden">
			<p>删除单据（红冲单据）</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd>数据库里单据一行的信息</dd>
					<dt><var>$isAlreadyStartTrans</var></dt>
					<dd>在调用本函数的时候外部是否已开启事务。@internal</dd>
				</dl></div>



				<h4>Author</h4>
				<div class="list">
						co8bit <a href="&#x6d;&#x61;&#x69;&#x6c;&#x74;&#x6f;&#58;&#109;&#101;&#64;&#99;&#111;8b&#x69;&#x74;&#x2e;&#x63;&#x6f;&#x6d;">&#109;&#101;&#64;&#99;&#111;8b&#x69;&#x74;&#x2e;&#x63;&#x6f;&#x6d;</a><br>
				</div>
				<h4>Version</h4>
				<div class="list">
						1.3<br>
				</div>
				<h4>Date</h4>
				<div class="list">
						2017-02-23<br>
				</div>
				<h4>Note</h4>
				<div class="list">
						传入的数据没有检查是否正确，要确保传入的是正确的数据！！！！！<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="setOrderStatus" id="_setOrderStatus">

		<td class="attributes"><code>
			 public 

			1
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setOrderStatus">#</a>
		<code><a href="source-class-Home.Model.OrderModel.html#1266-1521" title="Go to source code">setOrderStatus</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>boolean <var>$isAlreadyStartTrans</var> = <span class="php-keyword1">false</span></span> )</code>

		<div class="description short">
			<p>设置订单状态</p>
		</div>

		<div class="description detailed hidden">
			<p>设置订单状态</p>

<ul>
<li>@param unsigned_int $oid</li>
<li>@param unsigned_int $status 状态</li>
<li>当设置status为2的时候，需额外传入：</li>
<li>@param unsigned_int $exceptionNo 异常状态码</li>
<li>@param string $exception 异常原因</li>
</ul>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd>POST的数据</dd>
					<dt><var>$isAlreadyStartTrans</var></dt>
					<dd>在调用本函数的时候外部是否已开启事务。@internal</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					1<br>成功
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><a href="class-XYException.html">XYException</a></code>
				</div>

				<h4>Api</h4>
				<div class="list">
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="createDraft" id="_createDraft">

		<td class="attributes"><code>
			 public 

			unsigned_int
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_createDraft">#</a>
		<code><a href="source-class-Home.Model.OrderModel.html#1524-1678" title="Go to source code">createDraft</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>boolean <var>$isAlreadyStartTrans</var> = <span class="php-keyword1">false</span></span>, <span>unsigned_int <var>$oid</var>,…</span>, <span>unsigned_int <var>$class</var>,…</span>, <span>unsigned_int <var>$sto_id</var>,…</span>, <span>unsigned_int <var>$cid</var>,…</span>, <span>string <var>$contact_name</var>,…</span>, <span>string <var>$mobile</var>,…</span>, <span>string <var>$park_address</var>,…</span>, <span>string <var>$car_license</var>,…</span>, <span>float <var>$off</var>,…</span>, <span>float <var>$cash</var>,…</span>, <span>float <var>$bank</var>,…</span>, <span>float <var>$online_pay</var>,…</span>, <span>string <var>$remark</var>,…</span>, <span>unsigned_int <var>$reg_time</var>,…</span>, <span>json <var>$cart</var>,…</span> )</code>

		<div class="description short">
			<p>新建订单草稿</p>
		</div>

		<div class="description detailed hidden">
			<p>新建订单草稿</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd>post来的数据</dd>
					<dt><var>$isAlreadyStartTrans</var></dt>
					<dd>在调用本函数的时候外部是否已开启事务。@internal</dd>
					<dt><var>$oid</var>,…</dt>
					<dd>为空是新建草稿，有值是修改草稿</dd>
					<dt><var>$class</var>,…</dt>
					<dd>单据类别</dd>
					<dt><var>$sto_id</var>,…</dt>
					<dd>仓库id</dd>
					<dt><var>$cid</var>,…</dt>
					<dd>公司cid</dd>
					<dt><var>$contact_name</var>,…</dt>
					<dd>联系人名称</dd>
					<dt><var>$mobile</var>,…</dt>
					<dd>手机</dd>
					<dt><var>$park_address</var>,…</dt>
					<dd>停车位置</dd>
					<dt><var>$car_license</var>,…</dt>
					<dd>车牌号</dd>
					<dt><var>$off</var>,…</dt>
					<dd>优惠</dd>
					<dt><var>$cash</var>,…</dt>
					<dd>现金</dd>
					<dt><var>$bank</var>,…</dt>
					<dd>银行</dd>
					<dt><var>$online_pay</var>,…</dt>
					<dd>在线支付</dd>
					<dt><var>$remark</var>,…</dt>
					<dd>备注</dd>
					<dt><var>$reg_time</var>,…</dt>
					<dd>创建时间，可选参数。默认开单时间是当时，如果传入此项，则按此项时间。</dd>
					<dt><var>$cart</var>,…</dt>
					<dd>购物车内容，购物车格式如下：</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					unsigned_int<br>成功返回oid > 0（新建）或1（修改）
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><a href="class-XYException.html">XYException</a></code>
				</div>

				<h4>Since</h4>
				<div class="list">
						v0.2.28 $name => 无<br>
				</div>
				<h4>Api</h4>
				<div class="list">
				</div>
				<h4>Cart</h4>
				<div class="list">
						<p>json:
    mini:{"data":[{"sku_id":1,"spu_name":"三黄鸡","spec_name":"10只","quantity":10,"unitPrice":123},{"sku_id":2,"spu_name":"三黄鸡","spec_name":"15只","quantity":20,"unitPrice":223}]}
    展开:
    {
        "data":
        [
            {
                "sku_id":1,
                "spu_name":"三黄鸡",
                "spec_name":"10只",
                "quantity":10,
                "unitPrice":123
            },
            {
                "sku_id":2,
                "spu_name":"三黄鸡",
                "spec_name":"15只",
                "quantity":20,
                "unitPrice":223
            }
        ]
    }</p><br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="get_" id="_get_">

		<td class="attributes"><code>
			 public 

			json_array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_get_">#</a>
		<code><a href="source-class-Home.Model.OrderModel.html#1682-1728" title="Go to source code">get_</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>boolean <var>$isLock</var> = <span class="php-keyword1">false</span></span>, <span>unsigned_int <var>$oid</var>,…</span> )</code>

		<div class="description short">
			<p>查询单个订单</p>
		</div>

		<div class="description detailed hidden">
			<p>查询单个订单</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd>POST的数据</dd>
					<dt><var>$isLock</var></dt>
					<dd>是否加锁，如果为true，需要在外部打开事务. @internal</dd>
					<dt><var>$oid</var>,…</dt>
					<dd>要查询的那个单据的主键</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json_array<br>{"data":[{数据库中的一行}{..}]}
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><a href="class-XYException.html">XYException</a></code>
				</div>

				<h4>Api</h4>
				<div class="list">
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="mGet_" id="_mGet_">

		<td class="attributes"><code>
			 public 

			json_array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_mGet_">#</a>
		<code><a href="source-class-Home.Model.OrderModel.html#1732-1802" title="Go to source code">mGet_</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>boolean <var>$isAlreadyStartTrans</var> = <span class="php-keyword1">false</span></span>, <span>unsigned_int <var>$oid</var>,…</span> )</code>

		<div class="description short">
			<p>mobile用的查询单个订单API</p>
		</div>

		<div class="description detailed hidden">
			<p>mobile用的查询单个订单API</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd>POST的数据</dd>
					<dt><var>$isAlreadyStartTrans</var></dt>
					<dd>在调用本函数的时候外部是否已开启事务。@internal</dd>
					<dt><var>$oid</var>,…</dt>
					<dd>要查询的那个单据的主键</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json_array<br>{"data":[{数据库中的一行}{..}]}
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><a href="class-XYException.html">XYException</a></code>
				</div>

				<h4>Api</h4>
				<div class="list">
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="deleteDraft" id="_deleteDraft">

		<td class="attributes"><code>
			 public 

			1
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_deleteDraft">#</a>
		<code><a href="source-class-Home.Model.OrderModel.html#1806-1827" title="Go to source code">deleteDraft</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>unsigned_int <var>$oid</var>,…</span> )</code>

		<div class="description short">
			<p>删除单个草稿单据</p>
		</div>

		<div class="description detailed hidden">
			<p>删除单个草稿单据</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd>POST的数据</dd>
					<dt><var>$oid</var>,…</dt>
					<dd>要删除的那个单据的主键</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					1<br>成功
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><a href="class-XYException.html">XYException</a></code>
				</div>

				<h4>Api</h4>
				<div class="list">
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="delete_cid" id="_delete_cid">

		<td class="attributes"><code>
			 public 

			1
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_delete_cid">#</a>
		<code><a href="source-class-Home.Model.OrderModel.html#1831-1858" title="Go to source code">delete_cid</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>boolean <var>$isIgnoreEmpty</var> = <span class="php-keyword1">false</span></span>, <span>unsigned_int <var>$cid</var>,…</span> )</code>

		<div class="description short">
			<p>删除某个cid下的全部单据</p>
		</div>

		<div class="description detailed hidden">
			<p>删除某个cid下的全部单据</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd>POST的数据</dd>
					<dt><var>$isIgnoreEmpty</var></dt>
					<dd>当删除返回结果为空的时候是否抛出异常。true-不抛出</dd>
					<dt><var>$cid</var>,…</dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					1<br>成功
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><a href="class-XYException.html">XYException</a></code>
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="createAdjustAROrAP" id="_createAdjustAROrAP">

		<td class="attributes"><code>
			 public 

			unsigned_int
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_createAdjustAROrAP">#</a>
		<code><a href="source-class-Home.Model.OrderModel.html#1864-1966" title="Go to source code">createAdjustAROrAP</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>boolean <var>$isAlreadyStartTrans</var> = <span class="php-keyword1">false</span></span>, <span>boolean <var>$isDeleteOrder</var> = <span class="php-keyword1">false</span></span>, <span>string <var>$cid</var>,…</span>, <span>string <var>$class</var>,…</span>, <span>string <var>$name</var>,…</span>, <span>float <var>$income</var>,…</span>, <span>string <var>$remark</var>,…</span>, <span>unsigned_int <var>$reg_time</var>,…</span> )</code>

		<div class="description short">
			<p>新建  调整应收款、应付款</p>
		</div>

		<div class="description detailed hidden">
			<p>新建  调整应收款、应付款</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd>post来的数据</dd>
					<dt><var>$isAlreadyStartTrans</var></dt>
					<dd>在调用本函数的时候外部是否已开启事务。@internal</dd>
					<dt><var>$isDeleteOrder</var></dt>
					<dd>当Order::deleteOrder()调用时，传入true，将会把status置为91，代表红冲单据 @internal</dd>
					<dt><var>$cid</var>,…</dt>
					<dd>要调整的往来单位id</dd>
					<dt><var>$class</var>,…</dt>
					<dd>单据类别</dd>
					<dt><var>$name</var>,…</dt>
					<dd>摘要</dd>
					<dt><var>$income</var>,…</dt>
					<dd>金额>0</dd>
					<dt><var>$remark</var>,…</dt>
					<dd>备注</dd>
					<dt><var>$reg_time</var>,…</dt>
					<dd>创建时间，可选参数。默认开单时间是当时，如果传入此项，则按此项时间。</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					unsigned_int<br>成功返回oid > 0
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><a href="class-XYException.html">XYException</a></code>
				</div>

				<h4>Api</h4>
				<div class="list">
				</div>


		</div>
		</div></td>
	</tr>
	</table>

	<table class="summary inherited">
	<caption>Methods inherited from <a href="class-Home.Model.BaseadvModel.html#methods">Home\Model\BaseadvModel</a></caption>
	<tr>
		<td><code>
			<a href="class-Home.Model.BaseadvModel.html#_check_rpg_mode">check_rpg_mode()</a>, 
			<a href="class-Home.Model.BaseadvModel.html#_getMonthLastDay">getMonthLastDay()</a>, 
			<a href="class-Home.Model.BaseadvModel.html#_getWeekFirstDay">getWeekFirstDay()</a>, 
			<a href="class-Home.Model.BaseadvModel.html#_getWeekLastDay">getWeekLastDay()</a>
		</code></td>
	</tr>
	</table>








	<table class="summary inherited">
	<caption>Constants inherited from <a href="class-Home.Model.BaseadvModel.html#constants">Home\Model\BaseadvModel</a></caption>
	<tr>
		<td><code>
			<a href="class-Home.Model.BaseadvModel.html#AccountModel_cash_Proposal"><b>AccountModel_cash_Proposal</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#AccountModel_createAccount"><b>AccountModel_createAccount</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#AccountModel_delete_Account"><b>AccountModel_delete_Account</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#AccountModel_edit_Account"><b>AccountModel_edit_Account</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#AccountModel_query_account"><b>AccountModel_query_account</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#AccountModel_set_New_Source"><b>AccountModel_set_New_Source</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#AuthGroupAccessModel_setUserGroup"><b>AuthGroupAccessModel_setUserGroup</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#AuthGroupModel_create_"><b>AuthGroupModel_create_</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#AuthRuleModel_create_"><b>AuthRuleModel_create_</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#BANK_MODE"><b>BANK_MODE</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#CatModel_createCat"><b>CatModel_createCat</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#CatModel_editCat"><b>CatModel_editCat</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#CompanyModel_companyTransactionStatistics"><b>CompanyModel_companyTransactionStatistics</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#CompanyModel_requestStatementOfWechatAccount"><b>CompanyModel_requestStatementOfWechatAccount</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#ConfigModel_setShopConfig"><b>ConfigModel_setShopConfig</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#ContactModel_deleteContact"><b>ContactModel_deleteContact</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#CusListModel_createRecord"><b>CusListModel_createRecord</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#DepartmentModel_createDepartment"><b>DepartmentModel_createDepartment</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#DepartmentModel_deleteDepartment"><b>DepartmentModel_deleteDepartment</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#DepartmentModel_editDepartment"><b>DepartmentModel_editDepartment</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#FaceRecModel_upload_pic"><b>FaceRecModel_upload_pic</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#FinanceModel_create_FinanceOrder"><b>FinanceModel_create_FinanceOrder</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#FinanceModel_create_FinanceOrderDraft"><b>FinanceModel_create_FinanceOrderDraft</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#FinanceModel_delete_FinanceOrder"><b>FinanceModel_delete_FinanceOrder</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#FinanceModel_edit_FinanceOrder"><b>FinanceModel_edit_FinanceOrder</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#FinanceModel_financeOrderStatusChange"><b>FinanceModel_financeOrderStatusChange</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#FinanceModel_getExpenditureStatistics"><b>FinanceModel_getExpenditureStatistics</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#FinanceModel_query_FinanceOrder"><b>FinanceModel_query_FinanceOrder</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#MODEL_CREATE_DRAFT"><b>MODEL_CREATE_DRAFT</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#MODEL_DELETE_DRAFT"><b>MODEL_DELETE_DRAFT</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#MODEL_GET"><b>MODEL_GET</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#MODEL_QUERY"><b>MODEL_QUERY</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#MODEL_REPORT"><b>MODEL_REPORT</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#MODEL_SEARCH"><b>MODEL_SEARCH</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#MODEL_SINGLE_SMS"><b>MODEL_SINGLE_SMS</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#MODEL_VERIFY_CODE_CHECK"><b>MODEL_VERIFY_CODE_CHECK</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#MODEL_admin_register"><b>MODEL_admin_register</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#OrderModel_createAdjustAROrAP"><b>OrderModel_createAdjustAROrAP</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#OrderModel_createOrder"><b>OrderModel_createOrder</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#OrderModel_deleteCid"><b>OrderModel_deleteCid</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#PaybillModel_getPayBillParam"><b>PaybillModel_getPayBillParam</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#PaymentDetailsModel_create_"><b>PaymentDetailsModel_create_</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#PrintTemplateModel_WBXcreate_"><b>PrintTemplateModel_WBXcreate_</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#PrintTemplateModel_create_"><b>PrintTemplateModel_create_</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#PrintTemplateModel_get_"><b>PrintTemplateModel_get_</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#QueryModel_getOperatorInfo"><b>QueryModel_getOperatorInfo</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#QueryModel_operatorChart"><b>QueryModel_operatorChart</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#QueryModel_operatorSummary"><b>QueryModel_operatorSummary</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#QueryModel_purchaseSummary"><b>QueryModel_purchaseSummary</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#QueryModel_queryOrder"><b>QueryModel_queryOrder</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#QueryModel_saleSummary"><b>QueryModel_saleSummary</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#QueryModel_skuChart"><b>QueryModel_skuChart</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#QueryModel_skuSummary"><b>QueryModel_skuSummary</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#SkuBillModel_create_"><b>SkuBillModel_create_</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#SkuBillModel_queryOrderAndWarehouse"><b>SkuBillModel_queryOrderAndWarehouse</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#SkuCidPriceModel_get_"><b>SkuCidPriceModel_get_</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#SkuCidPriceModel_updateLastPrice"><b>SkuCidPriceModel_updateLastPrice</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#SkuModel_createFinanceCart"><b>SkuModel_createFinanceCart</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#SkuModel_editFinanceCart"><b>SkuModel_editFinanceCart</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#SkuModel_querySKU"><b>SkuModel_querySKU</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#SkuStorageModel_deleteSkuSto"><b>SkuStorageModel_deleteSkuSto</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#SkuStorageModel_get_"><b>SkuStorageModel_get_</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#SkuStorageModel_querySkuSto"><b>SkuStorageModel_querySkuSto</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#SkuStorageModel_updateSkuStorage"><b>SkuStorageModel_updateSkuStorage</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#SpuModel_createSPU"><b>SpuModel_createSPU</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#SpuModel_editSPU"><b>SpuModel_editSPU</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#StatementAccountModel_show_statement"><b>StatementAccountModel_show_statement</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#StorageModel_deleteSto"><b>StorageModel_deleteSto</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#StorageModel_get_"><b>StorageModel_get_</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#StorageModel_updateSto"><b>StorageModel_updateSto</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#UserAccountModel_renewForBalance"><b>UserAccountModel_renewForBalance</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#UserAccountModel_renewForMember"><b>UserAccountModel_renewForMember</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#UserModel_create_proxy"><b>UserModel_create_proxy</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#UserModel_editPassword"><b>UserModel_editPassword</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#UserModel_editShopInfo"><b>UserModel_editShopInfo</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#UserModel_login"><b>UserModel_login</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#WarehouseModel_deleteWarehouseOrder"><b>WarehouseModel_deleteWarehouseOrder</b></a>, 
			<a href="class-Home.Model.BaseadvModel.html#XY_ESS_MODE"><b>XY_ESS_MODE</b></a>
		</code></td>
	</tr>
	</table>









</div>

	<div id="footer">
		XY Server API alpha API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
